const { regeneratorRuntime } = global

Page(global.connect(
  state => ({
    ...state.globalReducer,
    ...state.activityReducer
  })
)({
  data: {
    uiTitle: '效果图'
  },
  onLoad(options) {
    // console.log('effect onLoad')
  },
  handleRoute: global.handleRoute,
  handleLicon1Tap(e) {
    wx.navigateBack()
  },
  handleViewImage(e) {
    const { index } = e.currentTarget.dataset
    const urls = this.data.effectImages.map(i => i.url)
    const current = urls[index]
    wx.previewImage({ current, urls })
  }
}))
